import VueRouter from 'vue-router'
//导入对应的路由组件
import HomeContainer from "./components/tabbar/HomeContainer";
import MemberContainer from "./components/tabbar/MemberContainer";
import CartContainer from "./components/tabbar/CartContainer";
import SearchContainer from "./components/tabbar/SearchContainer";
import NewsList from "@/components/news/NewsList";

var router=new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:"/home",
            component:HomeContainer
        },
        {
            path:"/member",
            component:MemberContainer
        },
        {
            path:"/cart",
            component:CartContainer
        },
        {
            path:"/search",
            component:SearchContainer
        },
        {
            path:'/home/newsList',
            component:NewsList
        }
    ],
    linkActiveClass:'mui-active'
    // 覆盖默认路由高亮的类，默认的类是router-link-active
});

export default router